echo Compile

%SystemRoot%\Microsoft.NET\Framework\v3.5\MSBuild.exe AgileComponents.DataConnectionSuite.sln /p:Configuration=Release
%SystemRoot%\Microsoft.NET\Framework\v3.5\MSBuild.exe Build\Documentation.shfbproj /p:Configuration=Release

echo Prepare Release

IF EXIST Release GOTO NOWINDIR
MKDIR Release
:NOWINDIR

Del Release\*.* /Q /S
XCOPY "DataConnection.Controls\bin\Release\*.xml" Release\
XCOPY "DataConnection.Controls\bin\Release\*.dll" Release\
XCOPY DataConnection.Samples Release\Samples /s /i /y
XCOPY Build\Help\Documentation.chm Release\
XCOPY COPYRIGHT.txt Release\
XCOPY LICENSE.txt Release\

PAUSE

